<template>
    <div class="not-found-container">
      <div class="not-found-content">
        <div class="error-animation">
          <div class="error-number">4</div>
          <div class="error-icon">
            <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
              <circle cx="50" cy="50" r="45" fill="none" stroke="#ff5252" stroke-width="8"/>
              <path d="M30,30 L70,70 M30,70 L70,30" stroke="#ff5252" stroke-width="8" stroke-linecap="round"/>
            </svg>
          </div>
          <div class="error-number">4</div>
        </div>
        <h1 class="error-title">页面未找到</h1>
        <p class="error-message">您访问的页面不存在或已被移除</p>
        <router-link to="/" class="home-button">
          返回首页
        </router-link>
      </div>
    </div>
  </template>
  
  <script>
  export default {
    name: 'NotFound',
    mounted() {
      document.title = '404 页面未找到'
    }
  }
  </script>
  
  <style scoped>
  .not-found-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
  }
  
  .not-found-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .error-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
  }
  
  .error-number {
    font-size: 120px;
    font-weight: bold;
    color: #3a3a3a;
    margin: 0 10px;
  }
  
  .error-icon {
    width: 120px;
    height: 120px;
    animation: bounce 2s infinite;
  }
  
  .error-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
  }
  
  .error-message {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 30px;
  }
  
  .home-button {
    display: inline-block;
    padding: 12px 30px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  }
  
  .home-button:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  }
  
  @keyframes bounce {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
  }
  
  @media (max-width: 600px) {
    .error-number {
      font-size: 80px;
    }
    
    .error-icon {
      width: 80px;
      height: 80px;
    }
    
    .error-title {
      font-size: 24px;
    }
    
    .error-message {
      font-size: 16px;
    }
  }
  </style>